import { Column, Entity, ManyToOne, PrimaryColumn, PrimaryGeneratedColumn } from "typeorm";
import { User } from "./user.entity";

@Entity()
export class Tags{
  @PrimaryGeneratedColumn()//自动递增
  id: number;

  @Column()
  name: string;
  
  @ManyToOne(()=>User)
  user:User
}